Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Programmer's Overview / Part 1 - Getting Started With QuickDraw GX
Chapter 1 - An Introduction to QuickDraw GX


QuickDraw GX Objects

QuickDraw GX provides many different types of objects: shape objects, style objects, ink objects, transform objects, view device objects, print job objects, printer objects, and so on. This section first describes shape objects, the main type of object used for graphics and typography. Then the section discusses the supporting objects, the objects used by a shape object to modify the drawing and hit-testing processes. Finally, this section discusses the printing objects, the objects used when printing a document.

Shape Objects

The shape object represents a single graphics or typographic shape. The shape object has nine properties. Three properties define the shape:

The shape object contains another three properties called the object-related properties:

Finally, the shape contains three properties that refer to its supporting objects. These properties are:

QuickDraw GX uses the style, ink, and transform objects to modify how the shape object is drawn and how it is hit-tested.

Figure 1-1 shows a shape object and the three supporting objects it references. The shape object properties shown in italics are references to other objects.

Figure 1-1 The shape object and the objects it references

Graphics Shape Objects

QuickDraw GX provides three types of graphics shapes:

Graphics shapes are represented in memory by shape objects--that is, they have a shape type, a geometry, a shape fill, and they reference style ink and transform objects. They are distinct in these ways:

Figure 1-2 shows some sample geometric, bitmap, and picture shapes.

Figure 1-2 Sample graphics shapes

For more information about graphics shapes, see Chapter 3, "Using QuickDraw GX Objects" and the recipes in Chapter 6, "Handling Graphics." For complete reference material, read the Inside Macintosh: QuickDraw GX Graphics book.

Typographic Shape Objects

QuickDraw GX provides three types of typographic shapes:

In many ways, the typographic shapes are similar to the other types of shapes: they have a shape type, a geometry, and a shape fill and they reference a style object, an ink object, and a transform object. They are distinct in three ways:

Figure 1-3 shows some sample text, glyph, and layout shapes.

Figure 1-3 Sample typographic shapes

For more information about typographic shapes, see Chapter 3, "Using QuickDraw GX Objects" and the recipes in Chapter 7, "Handling Typography." For complete reference material, read the Inside Macintosh: QuickDraw GX Typography book.

Supporting Objects

Each shape object references three supporting objects. Each of these supporting objects fulfills a different function:

Figure 1-4 shows some examples of the effects you can produce using
these objects.

Figure 1-4 The supporting objects and examples of how they affect shapes

QuickDraw GX provides more types of supporting objects than the three mentioned here. Chapter 3, "Using QuickDraw GX Objects" discusses all the supporting objects in more detail.

Printing Objects

The third important category of objects are the printing objects. These objects represent information about how a document should be printed.

There are three main types of printing objects:

There are several other types of printing objects. Chapter 3, "Using QuickDraw GX Objects," discusses all the printing objects in more detail.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996